package com.hebeiboruan.common.exception.system.power;
import com.hebeiboruan.common.exception.CommonException;
public class PowerException extends CommonException{

public PowerException(PowerResultEnum code){
    super(code.getResult());
    this.errorCode = code.getErrorCode();
    }


    public PowerException(String errorCode, String message){
    super(message);
    this.errorCode = errorCode;
    }

    protected String errorCode;

    public String getErrorCode() {
    return errorCode;
    }

    public void setErrorCode(String errorCode) {
    this.errorCode = errorCode;
    }
}

